package space.sakana.edusysback.entity.paper;

import space.sakana.edusysback.util.TimeUtil;

public class Paper {
    private int id;
    private String name;

    private int tid;
    private int create;
    private int score;

    public Paper(int id, String name, int tid, int create, int score) {
        this.id = id;
        this.name = name;
        this.tid = tid;
        this.create = create;
        this.score = score;
    }

    public Paper(String name, int tid, int create, int score) {
        this.name = name;
        this.tid = tid;
        this.create = create;
        this.score = score;
    }

    public Paper(String name, int tid) {
        this.name = name;
        this.tid = tid;
        this.create = TimeUtil.getTimeStamp();
        this.score = -1;
    }

    public Paper(String name) {
        this.name = name;
        this.tid = -1;
        this.create = TimeUtil.getTimeStamp();
        this.score = -1;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getTid() {
        return tid;
    }

    public void setTid(int tid) {
        this.tid = tid;
    }

    public int getCreate() {
        return create;
    }

    public void setCreate(int create) {
        this.create = create;
    }

    public int getScore() {
        return score;
    }

    public void setScore(int score) {
        this.score = score;
    }
}
